import {ADDUPDATELOG, UPDATELOGLIST} from '@/services/api'
import {request, METHOD} from '@/utils/request'

/**
 * 获取日志列表
 * @param name
 * @param password
 * @returns {Promise<*>}
 */
export async function getUpdateLogList(pageIndex, pageSize, params) {
    params.pageIndex = pageIndex
    params.pageSize = pageSize
    return request(UPDATELOGLIST, METHOD.POST, params)
}

/**
 * 保存日志信息
 * @param params
 * @returns {Promise<*>}
 */
export async function addUpdateLog(params) {
    return request(ADDUPDATELOG, METHOD.POST, params)
}